const Controller = require('egg').Controller

class HomeController extends Controller {
  // 统计首页数据
  async index() {
    const { ctx } = this
    const res = await ctx.service.statistics.home.getHomeData()
    if (res) {
      return ctx.renderBack(res)
    }
  }
}

module.exports = HomeController
